# Create your views here.
from django.http import HttpResponse,HttpResponseRedirect
from django.core.urlresolvers import reverse

def index(request):
    a = 123
    b = a + 1
    url = reverse('vote', args=(1,))
    return HttpResponseRedirect(url)

def detail(request,poll_id):
    return HttpResponse('hello,you input poll_id is: %s' % poll_id)

def results(request,poll_id):
    return HttpResponse('hello,you are looking at the results of poll_id is: %s' % poll_id)

def vote(request,poll_id):
    return HttpResponse('hello,you are voting on poll is: %s' % poll_id)
